<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <base href="${request.contextPath}/"/>
    <meta charset="UTF-8">
    <meta name="Keywords" content="">
    <meta name="Description" content="">
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0,minimum-scale=1.0">
    <title>时政词条</title>
    <link href="Content/wechat/css/reset.css" rel="stylesheet" type="text/css">
    <!--赞-->
    <link href="Content/wechat/css/demo.css" rel="stylesheet" type="text/css">
    <!--end 赞-->
    <link href="Content/wechat/css/dangJian_zuoFengJianShe_xx.css" rel="stylesheet" type="text/css">

    <script src="Content/wechat/js/jquery.min.js"></script>
    <!--字体缩放-->
    <script src="Content/wechat/js/ziti.js"></script>
    <!--end 字体缩放-->
</head>
<body >
<div class="header">
<#list szpartyStuList as item>
    <div class="header_xx">
        <h4>${item.studytitle !}</h4>
        <span>${item.communityname !}</span>
        <!--<p>-->
            <!--<img src="Content/wechat/images/zf.jpg">-->
        <!--</p>-->

    </div>
    <div class="UEditorContent">${item.content !}</div>
</#list>
    <!--赞-->
<!--    <div class="praise">-->
<!--        <span id="praise"><img src="Content/wechat/images/zan.png" id="praise-img" /></span>-->
<!--        <span id="praise-txt">1455</span>-->
<!--        <span id="add-num"><em>+1</em></span>-->
<!--    </div>-->
    <script>
        /* @author:Romey
         * 动态点赞
         * 此效果包含css3，部分浏览器不兼容（如：IE10以下的版本）
         */
        $(function(){
            $("#praise").click(function(){
                var praise_img = $("#praise-img");
                var text_box = $("#add-num");
                var praise_txt = $("#praise-txt");
                var num=parseInt(praise_txt.text());
                if(praise_img.attr("src") == ("Content/wechat/images/yizan.png")){
                    $(this).html("<img src='Content/wechat/images/zan.png' id='praise-img' class='animation' />");
                    praise_txt.removeClass("hover");
                    text_box.show().html("<em class='add-animation'>-1</em>");
                    $(".add-animation").removeClass("hover");
                    num -=1;
                    praise_txt.text(num)
                }else{
                    $(this).html("<img src='Content/wechat/images/yizan.png' id='praise-img' class='animation' />");
                    praise_txt.addClass("hover");
                    text_box.show().html("<em class='add-animation'>+1</em>");
                    $(".add-animation").addClass("hover");
                    num +=1;
                    praise_txt.text(num)
                }
            });
        })
    </script>
    <!--动态点赞结束-->

</div>








</body>
</html>